package com.lichuandi.service.impl;

import com.lichuandi.service.DiscountStrategy;
import org.springframework.stereotype.Component;

@Component("vipDiscount")
public class VipDiscountStrategy implements DiscountStrategy {
    @Override
    public double applyDiscount(double amount) {
        return 1.1*amount;
    }
    // 实现代码
}